<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:h="http://java.sun.com/jsf/html">

<body>
	<ui:composition template="../template.xhtml">

		<ui:define name="right">

		</ui:define>

		<ui:define name="center">
			<h2>#{bundle.Import}</h2>

			<p:panel id="panel" header="#{bundle.ImportGSETitle}">
				<h:form enctype="multipart/form-data">

					<p:growl id="growl" showDetail="true" life="600" />
					<p:messages showDetail="true" autoUpdate="true" />

					<h:panelGrid columns="2" styleClass="grid">

						<h:outputLabel for="fileload"
							value="#{bundle.ImportSeriesLabel_Name} *" />
						<p:fileUpload fileUploadListener="#{series.handleFileUpload}"
							mode="advanced" update="messages,name" sizeLimit="100000000"
							allowTypes="/(\.|\/)(xml.tgz)$/" />

						<h:outputLabel for="name"
							value="#{bundle.ImportSelectedFileLabe_Name} *" />
						<p:inputText id="name" disabled="true" value="#{series.fileName}"></p:inputText>
					</h:panelGrid>
					<p:commandButton style="float: right" id="submit" value="Submit"
						ajax="false" action="#{series.create}" update="growl">

					</p:commandButton>
				</h:form>

			</p:panel>
		</ui:define>

	</ui:composition>
</body>
</html>
